import request from "@/utils/request";

// 查询审批管理列表
export function listApprove(query) {
  return request({
    url: "/business/approve/list",
    method: "get",
    params: query,
  });
}

// 查询审批管理所有列表
export function listAllApprove(query) {
  return request({
    url: "/business/approve/listAll",
    method: "get",
    params: query,
  });
}

// 查询审批管理详细
export function getApprove(id) {
  return request({
    url: "/business/approve/getInfo/" + id,
    method: "get",
  });
}

// 新增审批管理
export function addApprove(data) {
  return request({
    url: "/business/approve/add",
    method: "post",
    data: data,
  });
}

// 修改审批管理
export function updateApprove(data) {
  return request({
    url: "/business/approve/edit",
    method: "post",
    data: data,
  });
}

// 删除审批管理
export function delApprove(id) {
  return request({
    url: "/business/approve/remove/" + id,
    method: "get",
  });
}

// 审核审批管理
export function auditApprove(data) {
  return request({
    url: "/business/approve/audit",
    method: "post",
    data: data,
  });
}
// 转帐审批管理
export function transferApprove(data) {
  return request({
    url: "/business/approve/transfer",
    method: "post",
    data: data,
  });
}
